import API from "../plugins/request";
import { ResponseData } from "@/interface/request";
// 获取菜单列表
export const getmenuList = (): Promise<ResponseData> => {
  return API.request({
    url: "/menu/list",
    method: "get",
  });
};
// 添加菜单
export const addMenu = (data: unknown): Promise<ResponseData> => {
  return API.request({
    url: "/menu/add",
    method: "post",
    data,
  });
};
